using net_work.Data.DTO.Cou;
using net_work.Data.Entity.Cou;

namespace net_work.IRepository.Cou;

public interface IScheduleRepository : IRepository<Schedule>
{
    /// <summary>
    /// 插入排课
    /// </summary>
    /// <param name="scheduleAddRequest">插入排课</param>
    /// <returns>新增排课ID</returns>
    Task<long> InsertAsync(ScheduleAddRequest scheduleAddRequest);

    /// <summary>
    /// 更新排课信息
    /// </summary>
    /// <param name="scheduleUpdateRequest">更新排课信息</param>
    /// <returns>是否成功</returns>
    Task<bool> UpdateAsync(ScheduleUpdateRequest scheduleUpdateRequest);
}